home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / MacTCP Library 1.1 / UDP⁄TCP Probe ƒ / Source ƒ / Probes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-04  |  900 b   |  39 lines  |  [TEXT/SPM ]

  1. /*
  2.     Probes.h
  3.     
  4.     Header file for Probes.c
  5.     
  6. */
  7.  
  8. #pragma once
  9.  
  10. #ifndef __H_Probes__
  11. #define __H_Probes__
  12.  
  13. extern Boolean gProbing;
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. OSErr InitProbes(void);
  20. OSErr CleanupProbes(void);
  21. OSErr StartProbe(DialogPtr dlg);
  22. OSErr StopProbe(void);
  23. OSErr Probe(ip_addr host,short port,short timeout,char* txt);
  24. OSErr HandleDataStream(StreamPtr sp);
  25. pascal void StrToAddrDone(HostInfoPtr hostInfoPtr, char* userDataPtr);
  26. pascal void UDPNotify(StreamPtr udp,unsigned short code,Ptr user,ICMPReport* icmp);
  27. OSErr HandleDataArrivals(void);
  28. OSErr ReportData(char* buffer,short buflen,ip_addr host,short port);
  29.  
  30. OSErr HandleTCPDataStream(StreamPtr sp);
  31. pascal void TCPNotify(StreamPtr tcp,unsigned short code,Ptr user,unsigned short term,ICMPReport* icmp);
  32. OSErr TCPProbe(ip_addr host,short port,short timeout,char* txt);
  33.  
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37.  
  38. #endif /* __H_Probes__ */
  39.